<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Rabbit() {}
      Rabbit.prototype = { eats: true };

      let rabbit = new Rabbit();
      // rabbit.__proto__ = Rabbit.prototype
      console.log(rabbit.eats); // true

      // 增加了一行，现在 `console.log` 会显示什么？
      Rabbit.prototype = {};
      console.log(rabbit.eats); // true

      // 如果代码是这样的（修改了一行）？
      Rabbit.prototype.eats = false;
      console.log(rabbit.eats); // true

      // 像这样呢（修改了一行）？
      delete rabbit.eats;
      console.log(rabbit.eats); // true
    </script>
  </body>
</html>
